import request from "./request.js";
export default {
  async getVolunteerCheck(options) {
    return request({
      method: "get",
      url: "/userControl/check",
      params: options,
    });
  },
  async getVolunteerSelect(options) {
    return request({
      method: "get",
      url: "/userControl/select",
      params: options,
    });
  },
  async refuse(options) {
    return request({
      method: "post",
      url: "/userControl/refuse",
      data: options,
    });
  },
  async pass(options) {
    return request({
      method: "post",
      url: "/userControl/pass",
      data: options,
    });
  },
  async addElderly(options) {
    return request({
      method: "post",
      url: "/userControl/registerElderly",
      data: options,
    });
  },
  async search(options) {
    return request({
      method: "get",
      url: "/userControl/search",
      params: options,
    });
  },
  async searchRole(options) {
    return request({
      method: "get",
      url: "/userControl/searchRole",
      params: options,
    });
  },
  async registerElderly(options) {
    return request({
      method: "post",
      url: "/userControl/registerElderlys",
      data: options,
    });
  },
};
